
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"5EDCAAA7-5E00-4927-9551-3EAED57592BF"}
 */
function nuevo(event) {
	var $win = application.createWindow('NUEVO_USR',JSWindow.MODAL_DIALOG)
	$win.title = 'Nuevo Usuario'
	forms.usuarios_alta.controller.show($win)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"6A85E9F0-41A6-482F-BE97-B6CE0AF9BBF8"}
 */
function iraDtl(event) {
	forms.usuarios_dtl.controller.show()
}

/**
 * Callback method when form is (re)loaded.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"AD74F475-D973-4F02-B0C1-F7035A1CEA9E"}
 * @AllowToRunInFind
 */
function onLoad(event) {
	controller.find()
	
	tipo_usuario = '<=' + gusuario_to_usuarios.tipo_usuario
	
	controller.search()
}
